package com.onlinewebgames.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.main);}
	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
    
    	getMenuInflater().inflate(R.menu.loginmenu, menu);
    	return super.onCreateOptionsMenu(menu);
    }
    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    
    	switch (item.getItemId()) {
    	
		case R.id.subMenuCambiarUsuario:
			Intent mensaje = new Intent(this, PreferencesActivity.class);
			startActivity(mensaje);
			break;

		default:
			break;
		}
    	
    	return super.onOptionsItemSelected(item);
    }
}
